package win.bojack.mall.member;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 想要远程调用
 * 1、引入openFeign
 * 2、编写一个interface, 告诉SpringCloud这个接口需要远程调用
 *  1) 声明interface中的方法，提定远程调用的接口
 * 3、开启远程调用功能
 */
@EnableDiscoveryClient()
@EnableFeignClients(basePackages = "win.bojack.mall.member.feign")
@SpringBootApplication
public class MallMemberApplication {
    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }
}
